package com.yanqu.road.entity.log.foxcard;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.activity.foxcard.FoxHandCard;
import com.yanqu.road.entity.activity.foxcard.FoxSaleCard;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_l_ck_activity_foxcard_buy", desc = "黑狐入侵购买", autoSave = true, dataUpload = true, eventName = "red_blackbuy", uploadCk = true)
public class LogFoxCardBuy extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "关卡id", dataAttribute = "red_blacklev")
    private int stageId;
    @FieldTypeAnnotation(desc = "回合数", dataAttribute = "red_blackid")
    private int round;
    @FieldTypeAnnotation(desc = "金币数量", dataAttribute = "red_blackcoin")
    private int gold;
    @FieldTypeAnnotation(desc = "支付的金币", dataAttribute = "red_blackusecoin")
    private int payGold;
    @FieldTypeAnnotation(desc = "买的位置", dataAttribute = "red_blackbuyid")
    private int buyPos;
    @FieldTypeAnnotation(desc = "买的卡或者优惠券", dataAttribute = "red_blackbuymap", saveJson = true)
    private FoxSaleCard buyCard;
    @FieldTypeAnnotation(desc = "买的卡包id", dataAttribute = "red_blackbuypackage")
    private int cardPackId;
    @FieldTypeAnnotation(desc = "是否购买并使用", dataAttribute = "red_blackbuyis")
    private boolean isUse;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogFoxCardBuy(int activityId, long userId, int stageId, int round) {
        this.activityId = activityId;
        this.userId = userId;
        this.stageId = stageId;
        this.round = round;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getStageId() {
        return stageId;
    }

    public void setStageId(int stageId) {
        this.stageId = stageId;
    }

    public int getRound() {
        return round;
    }

    public void setRound(int round) {
        this.round = round;
    }

    public int getGold() {
        return gold;
    }

    public void setGold(int gold) {
        this.gold = gold;
    }

    public int getBuyPos() {
        return buyPos;
    }

    public void setBuyPos(int buyPos) {
        this.buyPos = buyPos;
    }

    public FoxSaleCard getBuyCard() {
        return buyCard;
    }

    public void setBuyCard(FoxSaleCard buyCard) {
        this.buyCard = buyCard;
    }

    public int getCardPackId() {
        return cardPackId;
    }

    public void setCardPackId(int cardPackId) {
        this.cardPackId = cardPackId;
    }

    public boolean isUse() {
        return isUse;
    }

    public void setUse(boolean use) {
        isUse = use;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }

    public int getPayGold() {
        return payGold;
    }

    public void setPayGold(int payGold) {
        this.payGold = payGold;
    }
}
